package module;

import org.resotc.dao.LaneDAO;
import org.resotc.dao.StreetDAO;
import org.resotc.dao.TrackDAO;

import com.google.inject.AbstractModule;

public class ResOTCModule extends AbstractModule {
	
	private StreetDAO streetDAO;
	private TrackDAO trackDAO;
	private LaneDAO laneDAO;
	
	public ResOTCModule(StreetDAO streetDAO, TrackDAO trackDAO, LaneDAO laneDAO) {
		this.streetDAO = streetDAO;
		this.trackDAO = trackDAO;
		this.laneDAO = laneDAO;
	}

	@Override
	protected void configure() {
		bind(StreetDAO.class).toInstance(streetDAO);
		bind(TrackDAO.class).toInstance(trackDAO);
		bind(LaneDAO.class).toInstance(laneDAO);
	}
}